How to use vscode as git editor
Stackoverflow gives Instructions to make vscode as git editor.
- Ensure
Code
is on shell path - Set
Code
as the git editorgit config --global core.editor "code --wait"
- Use
Code
to edit configurationsgit config --global -e
- Add configurations to use
Code
as default diff tool[diff] tool = default-difftool [difftool "default-difftool"] cmd = code --wait --diff $LOCAL $REMOTE